Skip to content

Diya 🔥 (hoursLogged): Fixed Hours Logged on Weekly Summaries Report#4481

Merged
one-community merged 2 commits intodevelopmentfrom
Diya_Fix_WeeklySummaryHours
Dec 4, 2025
Merged

Diya 🔥 (hoursLogged): Fixed Hours Logged on Weekly Summaries Report#4481
one-community merged 2 commits intodevelopmentfrom
Diya_Fix_WeeklySummaryHours

Conversation

@DiyaWadhwani
Copy link
Copy Markdown
Contributor

@DiyaWadhwani DiyaWadhwani commented Nov 30, 2025

Description

This PR fixes the weekly summary report and displays actual hours logged unlike before where it would show the hours and flip to 0

Related PRS (if any):

None

Main changes explained:

FormattedReport.jsx

  • Using map so that a fresh copy of each summary is created so the filter logic doesn’t mutate or reuse the original objects, preventing React from re-rendering with outdated or overwritten values.

WeeklySummariesReport.jsx

  • totalSeconds sometimes returned null, causing the old calculation to overwrite correct values with zero, so using rawSeconds ensures we safely handle null and convert only valid numbers.

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. Clear site data/cache
  4. Login as admin user
  5. Reports > Weekly Summaries Report.
  6. Use logs to verify changes - Add logs in both places of changes to check whether hours logged changes values when the screen re-renders.

Screenshots or videos of changes:

Screenshot 2025-11-30 at 12 39 21 AM

Note:

Ensure you add some tangible or intangible hours to the account you are testing for - Won't be able to see hours logged until you actually log them right 😉

@netlify
Copy link
Copy Markdown

netlify Bot commented Nov 30, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 2ca4e86
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/692f44194044e10008df7334
😎 Deploy Preview https://deploy-preview-4481--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Dec 2, 2025

@one-community one-community changed the title Diya fix(hoursLogged): Fixed Hours Logged on Weekly Summaries Report Diya 🔥 (hoursLogged): Fixed Hours Logged on Weekly Summaries Report Dec 4, 2025
@one-community one-community merged commit ee20fb5 into development Dec 4, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants